<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>绝对路径</title>
  <style>
    /*
        z-index 控制元素堆叠顺序，值越大越靠上

    */
    .container{
      width: 1000px;
      height: 800px;
      border: 1px solid purple;
      position: absolute;
      margin-left: 200px;
    }
    div{
      width: 200px;
      height: 100px;
    }
    .c1{
      background: red;
      position: absolute;
      z-index: 5;
      left: 200px;
    }
    .c2{
      background: blue;
      position: absolute;
      z-index: 2;
      top: 100px;
    }
    .c3{
      background: #1f389c;
      position: absolute;
      z-index: 2;
      top: 100px;
      left: 400px;
    }
    .c4{
      background: green;
      position: absolute;
      z-index: 2;
      top:200px;
      left: 200px;
    }
  </style>
</head>
<body>
<div class="container">
  <div class="c1"></div>
  <div class="c2"></div>
  <div class="c3"></div>
  <div class="c4"></div>
</div>
</body>
</html>